<template>
  <div class="page page-login">
    <div class="login">
      <div class="login-box">
        <img src="../assets/logo.png" alt="Logo" class="logo">
      </div>
      <h2 class="title">Acme Admin Platform</h2>
      <form action="#">
        <input type="text" placeholder="Username" class="username">
        <input type="password" placeholder="Password" class="password">
        <div>
          <button class="sign-btn" @click.prevent="$router.push('/')">Sign In</button>
        </div>
      </form>

      <p class="copyright">&copy; 2021 Acme, Inc.</p>
    </div>
  </div>
</template>

<script>
export default {}
</script>

<style scoped lang="less">
  .page-login {
    position: fixed;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg,#f7fafd,#bddeff);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .login {
    border-radius: 3px;
    width: 300px;
    margin: 0 auto;
    padding: 15px;

    .login-box {
      text-align: center;
      margin-bottom: 50px;
    }

    .logo {
      width: 80px;
      height: 80px;
    }

    .title {
      text-align: center;
      color: #515C6C;
    }

    .username,
    .password {
      width: 100%;
      padding: 10px 15px;
      border: none;
      outline: none;
      box-sizing: border-box;
      line-height: 25px;
      box-shadow: 1px 1px 3px rgb(0 0 0 / 2%);
      border-radius: 3px;
      transition: all 300ms ease;
      margin-bottom: 15px;

      &:focus {
        box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.1);
      }
    }

    .sign-btn {
      margin-top: 10px;
      font-size: 18px;
      width: 100%;
      color: #fff;
      background-color: #36c1fa;
      display: inline-block;
      padding: 10px 12px;
      margin-bottom: 5px;
      line-height: 1.42857143;
      text-align: center;
      cursor: pointer;
      outline: none;
      border-radius: 2px;
      border: 1px solid #36c1fa;
      box-sizing: border-box;
      text-decoration: none;

      &:hover {
        background-color: #2db7f5
      }

      &:active {
        opacity: .8
      }
    }

    .copyright {
      margin-top: 50px;
      text-align: center;
      font-size: 13px;
      color: #515C6C;
    }
  }
</style>
